﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DoAnQuamLy.Controller;
using DoAnQuamLy.GUI;

namespace DoAnQuamLy
{
    public partial class Frm_PhieuThu : DevExpress.XtraEditors.XtraForm
    {
        public Frm_PhieuThu()
        {
            InitializeComponent();
        }
        PhieuThuController ctr1 = new PhieuThuController();
        private void Frm_PhieuThu_Load(object sender, EventArgs e)
        {
            ctr1.SapXepDuLieuLenPhieuthu(txt_SoPhieuThu, dtp_Ngay, cmb_LoaiPhieuThu, txt_LiDoThu, txt_ChungTuGoc, txt_NguoiNop, txt_DiaChi, nud_SoTien, txt_GhiChu);
        }

        private void btn_GhiDuLieu_Click(object sender, EventArgs e)
        {
            ctr1.Update();
        }

        private void btn_In_Click(object sender, EventArgs e)
        {
            ReportPhieuThu rp = new ReportPhieuThu();
            rp.Show();
        }
    }
}